#include "heap.h"
int main()
{
	Heap heap;
	HeapInit(&heap);
	HeapPush(&heap, 1);
	HeapPush(&heap, 2);
	HeapPush(&heap, 3);
	HeapPush(&heap, 4);
	HeapPush(&heap, 5);
	HeapPop(&heap);
	while (!HeapEmpty(&heap))
	{
		printf("%d ", HeapTop(&heap));
		HeapPop(&heap);
	}
	HeapDestroy(&heap);
	return 0;
}